<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="../mixins/style/base.css" />
    <link rel="stylesheet" href="../mixins/style/normalize.css" />

    <style>
        .nav-a {
            padding: 10px 15px;
            background-color: lightseagreen;
            color: white;
            line-height: 26px;
            height: 26px;
            cursor: pointer;
            margin-right: 10px;
            text-decoration: none;
        }

        #seajs-debug-console #seajs-debug-header {
            line-height: 20px!important;
            height: 32px!important;
        }
    </style>

</head>

<body>

    <div class="container" id="app">

        <div class="alert alert-danger mt_20" role="alert">非路由切换</div>

        <div style="line-height:40px;height:40px;">
            <a class="nav-a" @click="tabClick('one')">组件一</a>
            <a class="nav-a" @click="tabClick('two')">组件二</a>
            <a class="nav-a" @click="tabClick('three')">组件三</a>
        </div>

        <!-- 避免重新渲染 -->
        <keep-alive>
            <component class="mt_20" v-bind:is="tabView"></component>
        </keep-alive>
        <div class="alert alert-danger" role="alert">注：此为单页应用，资源做增量加载，页不是一次性加载 谷歌浏览器F12 查看网络请求</div>




    </div>


    <script src="http://localhost:8180//git-my/vue-ladder/src/lib/jquery.js"></script>
    <script src="http://localhost:8180//git-my/vue-ladder/src/lib/sea-all.js"></script>
    <script src="http://localhost:8180//git-my/vue-ladder/src/lib/seajs-style.js"></script>
    <script src="http://localhost:8180//git-my/vue-ladder/src/lib/seajs-debug.js"></script>






    <script src="http://localhost:8180//git-my/vue-ladder/src/lib/vue.js"></script>
    <script src="http://localhost:8180//git-my/vue-ladder/src/lib/vue-router.js"></script>

    <script src="http://localhost:8180//git-my/vue-ladder/src/lib/lodash.js"></script>

    <script src="http://localhost:8180//git-my/vue-ladder/src/page/boot.js"></script>



    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" />


    <script>
        $(function () {
            seajs.use('page/tab.js');
        })
    </script>



</body>

</html>